package com.cskaoyan.bean.pz;

import lombok.Data;

import java.util.List;

@Data
public class ColumnsAndRowBean<T> {
    List<String> columns;
    List<T> rows;

    public static <T> ColumnsAndRowBean data(List<String> columns, List<T> rows){
        ColumnsAndRowBean columnsAndRowBean = new ColumnsAndRowBean();
        columnsAndRowBean.setColumns(columns);
        columnsAndRowBean.setRows(rows);
        return columnsAndRowBean;
    }
}
